package com.example.dobs.demo.flink.io.flatten;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder;
import lombok.*;
import org.apache.avro.reflect.Nullable;

@AllArgsConstructor
@NoArgsConstructor
@Builder
@JsonPOJOBuilder
@Getter
@Setter
public class FlattenedBook extends FlattenedBase {

    @Nullable
    @JsonProperty
    String title;

    @Nullable
    @JsonProperty
    String author;

    @Nullable
    @JsonProperty
    Integer year;
}